package com.ygl.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ygl
 * @date 2021/7/19
 * @description xxx
 */
public class RequestUtils {

    public static String getBasePath(HttpServletRequest request) {
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() +
                ":" + request.getServerPort() + path + "/";
        return basePath;
    }
}
